package com.scujj.util;

public enum GoodStatusUtil {
    ENOUGH(0),
    LITTLE(1),
    EMPTY(2),
    STOP(3);
    public Integer status;

    GoodStatusUtil(int status) {
        this.status = status;
    }

    public static GoodStatusUtil getGoodStatus(Integer number) {
        if (number == 0) {
            return GoodStatusUtil.EMPTY;
        } else if (number < 10) {
            return GoodStatusUtil.LITTLE;
        } else {
            return GoodStatusUtil.ENOUGH;
        }
    }
}
